﻿using WcfTest.Core.Dtos;

namespace WcfTest.Core.Services.Impl
{
	public class TalkingService : ITalkingService
	{
		public string Say()
		{
			return "Hello, world";
		}

		public GreetingDto GreetSomeone(NameDto nameDto)
		{
			var greeting = string.Format("Hello, {0}!", nameDto.Name);
			var greetingDto = new GreetingDto {Greeting = greeting};

			return greetingDto;
		}
	}
}
